<template>
  <view class="item b-w b-shadow b-r10" @click="goDetail">
    <view class="flex-x-c">
      <u-avatar class="avator" size="50" :src="info.avatar"></u-avatar>
      <view class="company-name">
        <view>{{ info.enterpriseName }}</view>
        <view class="publish-time fc-66">{{ info.updateTime | timeForm }}</view>
      </view>
    </view>
    <view class="content-msg line-2">
      {{ info.content }}
    </view>
    <view class="flex-x-c content-bottom">
      <!-- <view class="phone">联系电话：18759933150</view> -->
    </view>
    <view class="status f32">{{
      info.audit == 0 ? '待审核' : info.audit == 1 ? '通过' : '拒绝'
    }}</view>
  </view>
</template>

<script>
export default {
  props: {
    info: {
      type: Object,
      default: () => {},
    },
  },
  methods: {
    goDetail() {
      let url = `/pages/index/businessDetail?id=${this.info.id}`
      if (this.identifying == 'admin' || this.identifying == 'dept') {
        url += `&examine=1`
      }
      this.$routeUtils.navigateTo({
        url,
      })
    },
  },
}
</script>

<style scoped lang="scss">
.item {
  position: relative;
  padding: 20rpx;
  .company-name {
    margin-left: 20rpx;
    .publish-time {
      margin-top: 20rpx;
    }
  }
  .content-msg {
    margin-top: 20rpx;
  }
}
.content-bottom {
  margin-top: 20rpx;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 20rpx;
}
.status {
  position: absolute;
  z-index: 1;
  right: 30rpx;
  top: 30rpx;
  color: $uni-color-primary;
}
</style>
